// import Vue from "vue"
import request from "../request"

export default {
    add: (params) => {
        return request({
            method: "POST",
            timeout: 1000,
            url: "/user/addUser",
            params: params
        })
    },
    deleteById: (params) => {
        return request({
            method: "POST",
            url: "/user/deleteById",
            params: params
        })
    },
    uploadFiles: (params) => {
        return request({
            url: "/user/uploadFiles",
            method: "POST",
            headers: {
                "Content-Type": "multipart/form-data"
            },
            data: params
        })
    }
}